home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20030409-20031118
/
000180_fdc@columbia.edu_Thu Jun 19 16:49:02 EDT 2003.msg
< prev
next >
Wrap
Text File
|
2003-11-18
|
3KB
|
63 lines
Article: 14409 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Access to all lines of an FTP multi-line reply
Date: 19 Jun 2003 16:48:40 -0400
Organization: Columbia University
Lines: 46
Message-ID: <bct7j8$je3$1@watsol.cc.columbia.edu>
References: <b97068c6.0306191232.37ef0ff0@posting.google.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1056055721 29036 128.59.39.139 (19 Jun 2003 20:48:41 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 19 Jun 2003 20:48:41 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14409
In article <b97068c6.0306191232.37ef0ff0@posting.google.com>,
Kent W. Martin <KentMartin@TexasHealth.org> wrote:
: I'm using the FTP client in Kermit 95 2.1.3 on Windows XP. The FTP
: server to which I'm connected is issuing multi-line replies:
:
: PUT T1H4CPPZ (text) (32760092 bytes)---> PASV
: 227 Entering Passive Mode (167,99,56,239,135,132).
: ---> STOR T1H4CPPZ
: 150 Sending file to member T1H4CPPZ in file T1H4CPPZ in library
: DOWNLOADA.
: 426-Records written to file T1H4CPPZ in library DOWNLOADA have been
: truncated. Data in file may not be valid.
: 426 Data transfer ended.
: : MESSAGE: Data transfer ended.
:
: According to section 4.2 (FTP replies) at
: ftp://ftp.isi.edu/in-notes/rfc959.txt the format of this multi-line
: reply is correct.
:
: In K95 \v(ftp_code) is correctly getting set to 426. However,
: \v(ftp_message) is getting set to "Data transfer ended.". How can I
: access the "Records written to file yadda, yadda, yadda" part of the
: message?
:
: BTW, I know why the server is issuing the message about the file
: having been truncated. That's not what I'm trying to fix.
:
When there are multiple lines in a message, Kermit saves only the last
one (as you noticed). If there are multiple messages, Kermit saves only
the last one.
If a message can have 2 lines, it can have 2 million; there's no good way
to save everything when there's no limit on what might have to be saved.
Similarly if there are multiple replies.
I suppose it would be possible to add an option to log FTP server replies
to a file, but then you'd have to open the file and read it to get the
messages out. But if that's OK with you, then you can do it already, like
this (assuming you're using C-Kermit):
log debug {| grep "^FTP" > ftp.log}
and then everything you want is in ftp.log.
- Frank